package com.zzyl.nursing.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zzyl.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@ApiModel("预约信息Dto")
public class ReservationDto {

    @ApiModelProperty(value = "预约人姓名")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "预约人手机号")
    @TableField("mobile")
    private String mobile;

    // 预约时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "预约时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("预约时间")
    private LocalDateTime time;

    // 预约类型，0：参观预约，1：探访预约
    @Excel(name = "预约类型，0：参观预约，1：探访预约")
    @ApiModelProperty("预约类型，0：参观预约，1：探访预约")
    private Integer type;

    @ApiModelProperty(value = "探访人")
    @TableField("visitor")
    private String visitor;
}
